﻿using AppService.IService.System_dictionary;
using Domain.Entity.System_dictionary;
using Domain.IRepository.System_dictionary;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.DependencyInjection;

namespace AppService.Service.System_dictionary
{
    [Dependency(ServiceLifetime.Scoped)]
    public class Sys_Dict_dataService : ISys_Dict_dataService
    {
        private readonly ISys_dict_dataRepository sys_Dict_DataRepository;

        public Sys_Dict_dataService(ISys_dict_dataRepository sys_Dict_DataRepository)
        {
            this.sys_Dict_DataRepository = sys_Dict_DataRepository;
        }
        public List<Sys_dict_data> GetData_status(string type)
        {
            return sys_Dict_DataRepository.GetData_status(type);
        }

        public List<Sys_dict_data> Getsys_Dict_Types(string Dict_name)
        {
            return sys_Dict_DataRepository.Getsys_Dict_Types(Dict_name);
        }

        public string GetSys_Dict_datacode(int Dict_code)
        {
            return sys_Dict_DataRepository.GetSys_Dict_datacode(Dict_code);
        }
    }
}
